<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['环卫管理','环卫标定','标定系数']" icon="fa fa-cube" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>标定系数</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<sa-company-tree-car companyTreeId="companyTree" (companySelected)="companySelected($event)"></sa-company-tree-car>
								<!--<div class="top_module top_module_box" style="min-width: auto;">
									<span class="top_module_label module_text">时间类型</span>
									<select name="" class="top_module_select" [(ngModel)]="timeType" style="min-width: 110px;">
										<option value="1">称重时间</option>
										<option value="2">创建时间</option>
									</select>
								</div>-->
								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" [specifyTime]='initDateRange'></table-select-date>
								</div>
								<button type="button" class="btn btn-primary" (click)="table_search()">查询</button>
								<!--<button type="button" class="btn btn-primary" (click)="census(censusModal)">统计</button>-->
							</div>
							<!--<div class="right top-search">
								<input type="text" [(ngModel)]="searchKey" (change)="table_search()" class="search-input" placeholder="关键字...">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>-->
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>车牌号码</th>
										<th>设备ID</th>
										<th>公司名称</th>
										<th>标定时间</th>
										<th>上升系数</th>
										<th>下降系数</th>
										<th>桶</th>
										<th>时间段</th>
										<th>上传时间</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData" >
										<td>
										    <button type="button" (click)="jumpPage('/system/car',row)" title="跳转车辆管理页面">{{row.carNumber}}</button>
										</td>
										<td>{{row.deviceId}}</td>
										<td>{{row.companyName}}</td>
										<td>{{row.calibrationTime}}</td>
										<td>
										    <span *ngIf="row.upFactor">[</span>
										    <span>{{row.upFactor}}</span>
										    <span *ngIf="row.upFactor">]</span>
										</td>
										<td>
										    <span *ngIf="row.upFactor">[</span>
                                            <span>{{row.downFactor}}</span>
                                            <span *ngIf="row.upFactor">]</span>
										</td>
										<td>{{row.bucketName}}</td>
										<td>
										    <button type="button" (click)="jumpPage('/langyun/calibration',row)" title="跳转标定数据页面">{{row.startTime}} 至 {{row.endTime}}</button>
										</td>
										<td>{{row.createTime}}</td>
										<td>
                                            <button type="button" (click)="delRow(row)">删除</button>
                                        </td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>